<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.system.sysmanager.menu.MenuType" />
<title>系统菜单维护</title>
<script language="javascript">
	
	function menuTypeTree_onclick(tree,page){
		
		 if(tree.treeNode.level >= 1){			 
			 page.find("menuTypeTreeFrame").view.url = "menu/menuList.jsp?menu_typ=" + tree.treeNode.nodeID
					                                              +"&app_id=" + page.element.parameter.app_id;			 
		 }else{			 
			 page.find("menuTypeTreeFrame").view.url = "";			 
		 }
		 
	}

	/* 树展示处理 */
	function menuTypeTree_show(tree,page,type){
		 
		 if(type == "add"){	
			 if(tree.treeNode.level == 0 ){
				 return true;
			 }else{
				 return false;
			 } 
		 }
		 
		 else if(type == "edit"){
			 if(tree.treeNode.level == 1 ){
				 return true;
			 }else{
				 return false;
			 }
		 }
		 
		 else if(type == "delete"){
			 if(tree.treeNode.level == 1 ){
				 return true;
			 }else{
				 return false;
			 }
		 }
		 
		 else{			 
			 return true;		 
		 }
		 
	}
</script>
